package com.cn.wanxi.common;

/**
 * 线程工具类
 */
public class ThreadTool {
    /**
     * 等待线程执行完毕
     * @param thread
     */
    public static void ThreadSleep(Thread thread){
        while (true){
            if (thread.isAlive()){
                try {
                    Thread.sleep(10);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }else {
                break;
            }
        }
    }
}
